package cn.yangsen.simplebeanmanager.bean.html;

import lombok.Getter;
import lombok.Setter;
import cn.yangsen.simplebeanmanager.bean.html.itfc.Cleanable;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamConverter;
import com.thoughtworks.xstream.converters.extended.ToAttributedValueConverter;

@XStreamAlias("option")
@XStreamConverter(value=ToAttributedValueConverter.class, strings={"content"})
public class Option extends Element implements Cleanable
{
	@Getter
	@Setter
	@XStreamAsAttribute
	private String value;
	
	@Getter
	@Setter
	@XStreamAsAttribute
	private String selected;
	
	@Getter
	@Setter
	private String content;
	
	@Override
	public void clean()
	{
		selected = null;
	}
}
